package com.ham.mud.commands;

import com.ham.mud.ServerConnection;
import com.ham.mud.characters.Vitals;

/**
 * Created by hlucas on Jul 1, 2011 at 4:33:15 PM
 */
public class ReportCommand extends PlayerCommand {
    @Override
    public void execute(ServerConnection connection, String[] params) {
        Vitals vitals = connection.getPlayer().getVitals();
        String reportString = "I have " + vitals.toString() + " and " + connection.getPlayer().getToNextLevel()  + " experience to next level.";

        String[] reportParams = new String[]{reportString};
        new SayCommand().execute(connection, reportParams);
    }

    @Override
    protected String getCommandName() {
        return "report";
    }
}
